﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MethodWorx.CMS.UI.Application.ActionResults;

namespace MethodWorx.CMS.Plugins.ActionResults
{
    public  class RefreshTreeNodeResult : AppJavaScriptResult
    {
        public RefreshTreeNodeResult()
            : this(false)
        {
        }

        public RefreshTreeNodeResult(bool parent)
            : base(parent ? "window.parent.refreshCurrentNode(true);" : "window.parent.refreshCurrentNode();")
        {
        }
    }
}
